/*
 *    Copyright (c) 2018-2025, bfcloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: bfcloud
 */

import request from '@/router/axios'

export function fetchList_new(query) {
  return request({
    url: '/ceping/evalActiviy/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/ceping/evalActiviy',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/ceping/anonymous/evalActiviy/' + id,
    method: 'get'
  })
}

export function delObj_new(id) {
  return request({
    url: '/ceping/evalActiviy/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/ceping/evalActiviy',
    method: 'put',
    data: obj
  })
}

export function cepingOpen_new(id) {
  return request({
    url: '/ceping/evalActiviy/cepingOpen/' + id,
    method: 'get'
  })
}

/**
 * 我的会议
 * @returns {*}
 */
export function wdHuoDong() {
  return request({
    url: '/ceping/evalActiviy/wdHuoDong',
    method: 'get'
  })
}

/*!
 * 绩效考核-审核处理
 *
 * @author zmk
 * @date 2021-06-13 12:11:35
 */
export function updateHdSh_new(obj) {
  return request({
    url: '/ceping/evalActiviy/updateHdSh_new',
    method: 'put',
    data: obj
  })
}
/*!
 * 首页 测评会议述职报告连表分页查询
 *
 * @author zmk
 * @date 2021-06-13 12:11:35
 */
export function getevalActiviyPage(query) {
  return request({
    url: '/ceping/evalActiviy/getCepingHdglbPage',
    method: 'get',
    params: query
  })
}
/*!
 *  首页 汇总查询统计
 *
 * @author zmk
 * @date 2021-06-13 12:11:35
 */
export function getUserInFoCount() {
  return request({
    url: '/ceping/evalActiviy/getUserInFoCount',
    method: 'get',

  })
}

/*!
 * 首页 我的测评结果分页查询
 *
 * @author zmk
 * @date 2021-06-13 12:11:35
 */
export function userHdzhhzbPage(query) {
  return request({
    url: '/ceping/evalActiviy/userHdzhhzbPage',
    method: 'get',
    params: query
  })
}

/*!
 *  合票逻辑
 *
 * @author zmk
 * @date 2021-07-01 19:11:35
 */
export function jointVote(id) {
  return request({
    url: '/ceping/evalActiviy/jointVote/' + id,
    method: 'get',

  })
}
